import request from '@/utils/request'

// 查询砍价商品列表
export function listKjsp(query) {
  return request({
    url: '/kjgl/kjsp/list',
    method: 'get',
    params: query
  })
}

// 查询砍价商品详细
export function getKjsp(id) {
  return request({
    url: '/kjgl/kjsp/' + id,
    method: 'get'
  })
}

// 新增砍价商品
export function addKjsp(data) {
  return request({
    url: '/kjgl/kjsp',
    method: 'post',
    data: data
  })
}

// 修改砍价商品
export function updateKjsp(data) {
  return request({
    url: '/kjgl/kjsp',
    method: 'put',
    data: data
  })
}

// 删除砍价商品
export function delKjsp(id) {
  return request({
    url: '/kjgl/kjsp/' + id,
    method: 'delete'
  })
}
